<!--
 * @Description: 学院信息盒子
 * @Version: 2.0
 * @Autor: Seven
 * @Date: 2020-12-10 09:24:41
 * @LastEditors: Seven
 * @LastEditTime: 2020-12-22 09:26:33
-->
<template>
    <div class="student-box">
        <div class="top">
            <el-avatar class="avatar" :size="76" :src="IMG_URL + data.avatarUrl"><img src="/images/avatar.png"/></el-avatar>
            <div class="name">
                <span class="n">{{data.studentName}} -</span>
                <span class="s">{{data.schoolName}}</span>
            </div>
        </div>
        <div class="info">
            {{data.des}}
        </div>
        <div class="btn">
            <span>报名课程：{{data.courseName}}</span>
        </div>
        <div class="time">2020-08-21</div>
    </div>
</template>
<script>
export default {
    props:{
        data:{
            type:Object,
            default:()=>{
                return {}
            }
        }
    }
}
</script>
<style lang="scss" scoped>
    .student-box{
        background-color: #ffffff;
        padding: 30px 20px;
        .top{
            text-align: center;
            .name{
                color: #425163;
                margin-top: 23px;
                @include line-over;
                .n{
                    font-size: 24px;
                }
                .s{
                    font-size: 18px;
                }
            }
        }
        .info{
            font-size: 16px;
            line-height: 30px;
            color: #A1A1A1;
            margin-top: 25px;
            height: 90px;
            @include line-over(3)
        }
        .btn{
            font-size: 16px;
            margin-top: 40px;
            padding: 0 15px;
            span{
                @include line-over;
            }
        }
        .time{
            color: #425163;
            text-decoration: underline;
            font-size: 16px;
            text-align: right;
            margin-top: 34px;
        }
    }
    @media screen and (max-width: 760px){
        .student-box {
            margin-bottom: 10px;
            padding: 10px;
            .top{
                .name {
                    margin-top: 10px;
                    .n{
                        font-size: 16px;
                    }
                    .s{
                        font-size: 14px;
                    }
                }
            }
            .info{
                font-size: 14px;
                line-height: 1.5;
                margin-top: 10px;
                height: 65px;
            }
            .btn{
                font-size: 12px;
                margin-top: 10px;
                height: 25px;
                line-height: 25px;
            }
            .time{
                margin-top: 15px;
            }
        }
    }
</style>